﻿// -------------------------------------------------------------------------
//    @FileName         :    NFCityBuffPart.cpp
//    @Author           :    gaoyi
//    @Date             :    2025/1/7
//    @Email            :    445267987@qq.com
//    @Module           :    NFCityBuffPart
//
// -------------------------------------------------------------------------

#include "NFCityBuffPart.h"

NFCityBuffPart::NFCityBuffPart()
{
    if (EN_OBJ_MODE_INIT == NFShmMgr::Instance()->GetCreateMode())
    {
        CreateInit();
    }
    else
    {
        ResumeInit();
    }
}

NFCityBuffPart::~NFCityBuffPart()
{
}

int NFCityBuffPart::CreateInit()
{
    return 0;
}
    
int NFCityBuffPart::ResumeInit()
{
    return 0;
}

int NFCityBuffPart::LoadFromDB(const proto_ff::tbRoleDetail* pDBData)
{
    return 0;
}

int NFCityBuffPart::InitConfig(proto_ff::tbRoleDetail* pDbData, const RoleOne& stRoleOne)
{
    return 0;
}

int NFCityBuffPart::SaveDB(proto_ff::tbRoleDetail* pDBData)
{
    return 0;
}

int NFCityBuffPart::MakePlayerDataCS(proto_ff::Proto_CSGetRoleRsp* pCSGetRoleRsp)
{
    return 0;
}

int NFCityBuffPart::MakeCityPlayerData(proto_ff::CityRoleInfo* pGCCityRoleInfo)
{
    for( int i = 0; i < m_aiBuffID.size(); ++i )
    {
        /*CCityBuff *pCityBuff = CCityBuff::GetObjectByID(m_aiBuffID[i]);
        if( pCityBuff )
        {
            proto_ff::CityBuffOneCS *pBuffOneCS = pRoleBuffDataCS->add_buff();
            CHECK_NULL(pBuffOneCS);

            pCityBuff->MakeCSBuffOne( pBuffOneCS );
        }
        else
        {
            LOGSVR_ERROR("invalid buff object id:" << m_aiBuffID[i]);
        }*/
    }
    return 0;
}
